/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

import entities.Run;
import java.util.ArrayList;

/**
 *
 * @author niquefa
 */
public class VerdictOutput
{
    private String code;
    private String compileOutput;
    private String executionOutput;
    private String verdict;
    private double percentTestCaseAccepted;
    private ArrayList<Run> runs = new ArrayList<Run>();

    public void addRun( Run run )
    {
        this.runs.add(run);        
    }
    public ArrayList<Run> getRuns() {
        return runs;
    }

    public void setRuns(ArrayList<Run> runs) {
        this.runs = runs;
    }
    @Override
    public String toString()
    {
        return "VERDICT: "+this.verdict+"\nCOMPILE OUTPUT:\n"+compileOutput+"\nEXECUTION OUTPUT:\n"+executionOutput;
    }

    public String getCompileOutput()
    {
        return compileOutput;
    }

    public void setCompileOutput(String compileOutput) {
        this.compileOutput = compileOutput;
    }

    public String getExecutionOutput() {
        return executionOutput;
    }

    public void setExecutionOutput(String executionOutput) {
        this.executionOutput = executionOutput;
    }

    public double getPercentTestCaseAccepted() {
        return percentTestCaseAccepted;
    }

    public void setPercentTestCaseAccepted(double percentTestCaseAccepted) {
        this.percentTestCaseAccepted = percentTestCaseAccepted;
    }

    public String getVerdict() {
        return verdict;
    }

    public void setVerdict(String verdict) {
        this.verdict = verdict;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
